﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SubPage.Master" AutoEventWireup="true" CodeBehind="DownloadList.aspx.cs" Inherits="School.WebPages.Download.DownloadList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagPrefix="uc" TagName="SearchBox" Src="~/Controls/Search.ascx" %>
<%@ Register TagPrefix="uc" TagName="MainLeft" Src="~/Controls/MainLeft.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../CSS/list.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .fileTable{ border-top:solid 2px #E4A635;}
        .fileTable th{ height:30px; background-color:#F6F6F6; color:#494949; font-weight:normal; font-size:14px;}
        .fileTable td{ border-bottom:solid 1px #EFF1EE; height:25px; color:#7F7E7E;}
        .fileTable .td1{color:#276C00;}
        .fileTable .th1,.fileTable .td1{ width:50%;}
        .fileTable .th2,.fileTable .td2{width:20%;}
        .fileTable .th3,.fileTable .td3{width:10%;}
        .fileTable .th4,.fileTable .td4{width:20%;}
        .fileTable .td1{ padding-left:15px;}
        .td2,.td3,.td4{ text-align:center;}
        
        .fileTable a{ width:13px; height:13px; background-image:url(../../images/download.png); display:block; margin:auto;}
        .red{ color:Red;}
        .item_container{margin:auto; width:90%;}
        .itemTitle{ height:30px; background-color:#F2F6F7; border-bottom:solid 1px #D6DDE3; line-height:30px; padding-left:10px; color:#0054A6; font-size:14px; font-weight:bold; margin-top:15px;}
        .itemRemark{color:#999999; padding:10px;}
        .itemInfo{ padding-left:10px;}
        .item_container ul li{ float:left; list-style:none; color:#555555; margin-right:10px;}
        .item_container .sep{ width:1px; background-color:#A755A7; height:12px; margin-top:1px;}
        .downloadBtn{ margin:7px 10px 0 0;}
        .itemInfo a:link{ text-decoration:none;}
        .itemInfo a:visited{text-decoration:none;}
        .itemInfo a:hover{text-decoration:underline;}
        .itemInfo a:active{text-decoration:underline;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main_container">
        <div class="float_left main_left">
            <uc:MainLeft runat="server" id="mainleft1" />
        </div>
        <div class="float_right main_right">
            <div class="article_nav link_3">当前位置：<a href="/WebPages/Download/DownloadList.aspx?parentCategory=36&categories=20">下载中心</a> > <%=subMenu %></div>
            <div class="item_container">
                <%--<table cellspacing="0" border="0" class="fileTable">
                    <tr>
                        <th class="th1">文件名</th>
                        <th class="th2">大小</th>
                        <th class="th3">文件类型</th>
                        <th class="th4">下载</th>
                    </tr>
                    <asp:Repeater ID="rep_DownloadFileItem" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td class="td1"><%#Eval("Title") %></td>
                                <td class="td2"><%#FileSizeConvert(long.Parse(Eval("FileSize").ToString()))%></td>
                                <td class="td3"><%#Eval("ExtendName") %></td>
                                <td class="td4"><a href='<%#Eval("FIilePath") %>'></a></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>--%>
                <asp:Repeater ID="rep_DownloadFileItem" runat="server" 
                    onitemcommand="rep_DownloadFileItem_ItemCommand">
                    <ItemTemplate>
                        <div class="itemTitle">
                            <div class="float_left"><%#Eval("Title") %></div>
                            <div class="float_right downloadBtn"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/downbtn.gif" ToolTip="点击下载" CommandName="Download" CommandArgument='<%#Eval("FID")+","+Eval("FIilePath") %>' /></div>
                        </div>
                        <div class="itemRemark"><%#Eval("Remark") %></div>
                        <div class="itemInfo">
                            <ul>
                                <li>文件大小：<%#FileSizeConvert(long.Parse(Eval("FileSize").ToString()))%></li>
                                <li class="sep"></li>
                                <li>文件类型：<%#Eval("ExtendName") %></li>
                                <li class="sep"></li>
                                <li>发布时间：<span class="red"><%#Eval("UploadTime","{0:d}") %></span></li>
                                <li class="sep"></li>
                                <li>附：<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Download" CommandArgument='<%#Eval("FID")+","+Eval("AttachmentFilePath") %>'><%#Eval("AttachmentTitle")%></asp:LinkButton></li>
                                <li class="sep"></li>
                                <li>下载次数：<%#Eval("Hits") %></li>
                            </ul>
                        </div>
                        <div class="clear"></div>                        
                    </ItemTemplate>
                </asp:Repeater>            
            </div>
            <div class="pager_container">
                <webdiyer:AspNetPager runat="server" ID="AspNetPager1" PageSize="10" 
                    onpagechanged="AspNetPager1_PageChanged"
                    CustomInfoHTML="每页%PageSize%条，%CurrentPageIndex%/%PageCount%页" 
                    FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                    ShowCustomInfoSection="Left" SubmitButtonText="Go" TextAfterPageIndexBox="页"  
                    CustomInfoClass="customInfo" CustomInfoSectionWidth="100"
                    TextBeforePageIndexBox="转到">
                </webdiyer:AspNetPager>
            </div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
</asp:Content>
